import common from '@/common/common.js'
const Means = {
	Sublevel(Data){
		const Res = Data.postArr;
		const parameter = `pt=${Res.pt}&type=${Res.type}&list_id=${Res.list_id}&label_id=${Res.label_id}`;
		switch (Res.pt) {
		    case '1': // 图片分类
		        common.toUrl(`/classification/imgClass?${parameter}`);
		        break;
		    case '2': // 纯文字
		        common.toUrl(`/classification/textClass?${parameter}`);
		        break;
		    case '3': // 左右结构
		        common.toUrl(`/classification/andClass?${parameter}`);
		        break;
		    case '4': // 文章列表
		        common.toUrl(`/classification/articleClass?${parameter}`);
		        break;
		    case '5': // 查询结果页
		        common.toUrl(`/classification/queryResult?${parameter}`);
		        break;
		    case '6': // 详情页
		        common.toUrl(`/otherPage/article/artDetail?artId=${Res.id}`);
		        break;
		    default:
			   console.log('No matching case found');
		}
	},
}

export default Means